{% extends 'base.html' %}
{% load static %}

{% block title %}删除活动 - Meet活动聚{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-lg-6">
            <div class="card shadow">
                <div class="card-header bg-danger text-white">
                    <h4 class="mb-0"><i class="bi bi-exclamation-triangle"></i> 删除活动</h4>
                </div>
                <div class="card-body text-center">
                    <div class="mb-4">
                        <i class="bi bi-exclamation-triangle-fill text-warning" style="font-size: 4rem;"></i>
                    </div>
                    
                    <h5>确定要删除活动吗？</h5>
                    <p class="text-muted">活动标题：<strong>{{ activity.title }}</strong></p>
                    <p class="text-danger">此操作不可撤销！所有相关的报名记录、评论和评分都将被删除。</p>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-grid gap-2 d-md-flex justify-content-md-center">
                            <button type="submit" class="btn btn-danger me-md-2">
                                <i class="bi bi-trash"></i> 确认删除
                            </button>
                            <a href="{% url 'activities:activity_detail' activity.id %}" class="btn btn-secondary">
                                <i class="bi bi-x-circle"></i> 取消
                            </a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}